package com.example.system.security.controller;

import com.example.system.security.service.RsaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/auth")
public class RsaController {
    
    @Autowired
    private RsaService rsaService;
    
    @GetMapping("/public-key")
    public ResponseEntity<String> getPublicKey() {
        return ResponseEntity.ok(rsaService.getPublicKey());
    }
}
